package standard

import (
	"github.com/gin-gonic/gin"
)

type IController interface {
	Get(ctx *gin.Context)
	List(ctx *gin.Context)
	Create(ctx *gin.Context)
	Update(ctx *gin.Context)
	Delete(ctx *gin.Context)
	ExtendPath(r *gin.RouterGroup)
}

type Controller struct{}

func (c *Controller) Get(ctx *gin.Context) {
	ctx.String(404, "未定义Get方法")
}

func (c *Controller) List(ctx *gin.Context) {
	ctx.String(404, "未定义List方法")
}

func (c *Controller) Create(ctx *gin.Context) {
	ctx.String(404, "未定义Create方法")
}
func (c *Controller) Update(ctx *gin.Context) {
	ctx.String(404, "未定义Update方法")
}

func (c *Controller) Delete(ctx *gin.Context) {
	ctx.String(404, "未定义Delete方法")
}
func (c *Controller) ExtendPath(r *gin.RouterGroup) {

}
